var express = require('express');
var path = require('path');
var app = express();
var colors = require('colors');



app.use(express.static(path.join(__dirname, 'public')));


var server = app.listen(3000, function () {
    var host = server.address().address;
    var port = server.address().port;
    console.log('Example app listening at http://%s:%s', host, port);
    console.log('--------服务开始启动-----------'.green);
    console.log(' ___________________             __________________           ___      ________'.rainbow);
    console.log('|___________________|           |__________________|          |__|    |________|'.rainbow);
    console.log('         | |                         | |   | |              -----   '.rainbow);
    console.log('         | |                   \\-\\   | |   | |   /-/        |    | ______________ '.rainbow);
    console.log('   --------------               \\ \\  | |   | |  / /         --|  | |_____________|'.rainbow);
    console.log('  |______________|               \\_\\ | |   | |  /_/           |  |    / /       _'.rainbow);
    console.log('         | |                         | |   | |                |  |   / /_____\\ \\'.rainbow);
    console.log('         | |                         | |   | |                |  |  /__________\\_\\   _'.rainbow);
    console.log(' --------------------          ----------------------         /--/-----------------/ /'.rainbow);
    console.log('|--------------------|        |----------------------|       /__/-------------------/'.rainbow);
});